<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.property/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/header.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>增加属性</title>
<script type="text/javascript">
if("${error}"=="0"){
	   closeMyDialog({flag:true});
	 }else if("${error}"=="1"){
	   myAlert("错误信息","${msg}","e");
	 }
	 $(function(){
		 $("#cancelBtn").click(function(){
    		 closeMyDialog();
    	 });
	     $("#saveBtn").click(function(){
             $("form").submit();
		     });
		 });
</script>
</head>
<body class="easyui-layout">
    <div data-options="region:'north',border:false" class="editHeadDiv"><span class="icon-tip">&nbsp;&nbsp;&nbsp;</span>&nbsp;提示信息：<font class="requiredmark">*</font>为必填字段！</div>
    <div data-options="region:'center',border:false" class="editContDiv">
      <form action="${base}sysProperty/editProperty" class="easyui-form" method="post" data-options="novalidate:true">
      <input name="id" type="hidden" value="${property.id}"/>
           <table class="editTable">
           <tr>
               <th><font class="requiredmark">*</font>属性名称：</th><td><input class="easyui-textbox"  name="propertyName" data-options="required:true" 
               	validType="remote['${base}sysProperty/validatePropertyName?id=${property.id}','propertyName']" value="${property.propertyName}"/></td>
           </tr>
            <tr>
               <th>属性值：</th><td><input class="easyui-textbox"  name="propertyValue" value="${property.propertyValue}"/></td>
           </tr>
             <tr>
            <th><font class="requiredmark">*</font>属性类型：</th><td>
                 <input class="easyui-combobox" panelHeight="auto" name="propertyType"
                  data-options='required:true,valueField:"itemValue",textField:"itemName",data:${SysPropertyType},editable:false' value="${property.propertyType}"/>
                 </td>
           </tr>
           <tr>
            <th>描述：</th><td><textarea class="easyui-textbox" data-options="multiline:true" name="remark" style="height:60px;width:94%;">${property.remark}</textarea></td>
           </tr>
    </table>
    </form>
    </div>
	<div data-options="region:'south',border:false" class="editBtnDiv">
	    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" style="width:10%" id="saveBtn">保存</a>
		<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" style="width:10%" id="cancelBtn">取消</a>
	</div>
</body>
</html>